import { defineStore } from 'pinia'

export const useIndexStore = defineStore('Index', {
  state: () => {
    return {
      ispc: true, // 是否是pc端
      isOff: true, // 背景音乐状态
      musicShow: false // 背景音乐图标显示状态
    }
  },
  getters: {
    getDevice: (state) => state.ispc
  },
  actions: {
    updateDevice(val) {
      this.ispc = val
    }
  }
})
